<template>
  <el-button @click="getArcfun">加载数据</el-button>
  <div>
    <div v-for="item in state.datas" :key="item.id">
      {{ item.title }}
    </div>
  </div>
</template>
<script setup lang="ts">
import { reactive, ref } from "vue";
import { getArc } from "@/api/cnode/article";

const params = {
  tab: "good",
};
const state = reactive({
  datas: [],
});
const getArcfun = async () => {
  const res = await getArc(params);
  state.datas = res?.data;
};
</script>

<style scoped>
.read-the-docs {
  color: #888;
}
</style>
